package cn.geminis.lowcode.compiler.code;

import com.sun.source.tree.ExpressionTree;

import javax.lang.model.element.Element;

/**
 * @author puddi
 */
public abstract class AbstractExpression<T extends ExpressionTree> extends AbstractCode<T, Element> {
    @Override
    protected Element createJdkElement() {
        throw new UnsupportedOperationException();
    }

    public LcExec exec() {
        return new LcExec(this);
    }

    public LcReturn rtn() {
        return new LcReturn(this);
    }
}
